package ru.study.thinkin.chapter7;

class Homer {
	char doh(char c) {
		System.out.println("doh(char)");
		return 'd';
	}
	float doh(float f) {
		System.out.println("doh(float)");
		return f;
	}
}
class Milhouse {}

class Bart extends Homer {
	void doh(Milhouse m) {
		System.out.println("doh(Milhouse)");
	}
}

public class Hide {

	public static void main(String[] args) {
		Bart b = new Bart();
		b.doh('w');
		b.doh(1.2F);
		b.doh(new Milhouse());
	}

}
